package Demo9;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-12-19
 * Time: 23:06
 */
/* 请在这里填写答案 */

public class Main {
    public static void main(String args[]){
        Student student = new Student();
        student.name = "张浩";
        student.age = 10;
        student.classNo = "S1班";
        student.hobby = "篮球";
        student.show();
    }
}
class Student{
    public String  name;
    public int age;
    public String classNo;
    public String  hobby;
    public void show(){
        System.out.println("姓名："+name+"\n年龄："+age+"\n就读于:"+classNo+"\n爱好:"+hobby);
    }
}